Don't call unbind_for_thread_switch in run_thread
authorTom Tromey <tromey@redhat.com>
Wed, 3 Jul 2013 19:42:31 +0000 (13:42 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 3 Jul 2013 19:42:31 +0000 (13:42 -0600)
This removes the call to unbind_for_thread_switch from run_thread.
This isn't necessary because acquire_global_lock does it properly.

src/thread.c

index 8f58faf1b089316857c0f0b4c38e5646411e2dd0..0235944ccdc32c7f1debbd7291583de2b2206174 100644 (file)
@@ -637,8 +637,6 @@ run_thread (void *state)
   /* It might be nice to do something with errors here.  */
   internal_condition_case (invoke_thread_function, Qt, do_nothing);
 
-  unbind_for_thread_switch ();
-
   update_processes_for_thread_death (Fcurrent_thread ());
 
   /* Unlink this thread from the list of all threads.  */